import request from '@/utils/reuqest.ts'
import { ElMessage } from 'element-plus'

export async function sendEmail(email: string): Promise<void> {
  request.post('/mail/put', { email: email }).then((res) => {
    console.log(res)
    if (res.data.code === 200) {
      ElMessage.success(res.data.msg)
    }
  })
}
